import request from '@/utils/request'

// 查询收益管理分页
export function getBsIncomePage(query) {
  return request({
    url: '/bsIncome/getPage',
    method: 'get',
    params: query
  })
}

// 查询收益管理列表
export function getBsIncomeList(query) {
  return request({
    url: '/bsIncome/getList',
    method: 'get',
    params: query
  })
}

// 通过主键查询收益管理详细
export function getBsIncomeById(query) {
  return request({
    url: '/bsIncome/getById',
    method: 'get',
    params: query
  })
}

// 新增或修改收益管理信息
export function addOrUpdateBsIncome(data) {
  return request({
    url: '/bsIncome/saveOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除收益管理记录
export function delBsIncome(ids) {
  return request({
    url: '/bsIncome/deleteByIds/'+ids,
    method: 'delete',
  })
}

// 导出收益管理数据
export function exportBsIncome(query) {
  return request({
    url: '/bsIncome/export',
    method: 'get',
    params: query
  })
}